<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>重庆耀炎食品有限公司 - 门店信息</title>
    <script>
        document.write('<link rel="stylesheet" href="../css/end.core.css?t=' + new Date().getTime() + '" type="text/css">')
        document.write('<link rel="stylesheet" href="../css/base.css?t=' + new Date().getTime() + '" type="text/css">')
        document.write('<link rel="stylesheet" href="../css/info.css?t=' + new Date().getTime() + '" type="text/css">')
    </script>
</head>
<body>
<div id="app" class="end-preLoad">
    <div class="end-base-header">
        <div class="end-container">
            <div class="header-content end-flex">
                <div class="header-left">
                    <div class="end-flex">
                        <a href="index.html" class="end-flex end-al-c">
                            <span>首页</span>
                        </a>
                        <a href="product.html" class="end-flex end-al-c">
                            <span>品牌和产品</span>
                        </a>
                        <a href="cooperation.html" class="end-flex end-al-c">
                            <span>联营合作</span>
                        </a>
                    </div>
                </div>
                <div class="header-center-logo">
                    <img src="../image/LOGO.png" alt="LOGO">
                </div>
                <div class="header-right">
                    <div class="end-flex">
                        <a href="service.html" class="end-flex end-al-c">
                            <span>配套服务</span>
                        </a>
                        <a href="info.html" class="active end-flex end-al-c">
                            <span>门店信息</span>
                        </a>
                        <a href="about.html" class="end-flex end-al-c nav">
                            <span>关于我们</span>
                            <div class="nav-content end-flex col ">
                                <div class="nav-item end-flex end-al-c end-jc-c">
                                    <span>企业</span>
                                </div>
                                <div class="nav-item end-flex end-al-c end-jc-c">
                                    <span>关于我们</span>
                                </div>
                            </div>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="end-base-banner">
        <div class="end-container">
            <div class="end-carousel" id="carousel">
                <div class="left-container end-flex end-al-c">
                    <div class="left-arrow end-cur-p" onclick="end_carousel.pre_carousel()"></div>
                </div>
                <div class="right-container end-flex end-al-c">
                    <div class="right-arrow end-cur-p" onclick="end_carousel.next_carousel()"></div>
                </div>
                <div class="content">
                    <div class="end-carousel-item">
                        <img src="../image/pic.png" alt="">
                    </div>
                    <div class="end-carousel-item">
                        <img src="../image/pic.png" alt="">
                    </div>
                    <div class="end-carousel-item">
                        <img src="../image/pic.png" alt="">
                    </div>
                    <div class="end-carousel-item">
                        <img src="../image/pic.png" alt="">
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="mid-container end-no-select">
        <div class="end-container">
            <div class="time-line-container" id="timeLine">
                <div class="header-title">
                    <span>百滋百特</span>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>重庆/龙湖时代天街店—重庆市渝中区龙湖时代天街购物广场C馆L1-55B</p>
                        <img src="../image/thumb.png" alt="" onclick="showDialog()" class="end-cur-p">
                        <div class="bottom-index end-flex end-al-c end-jc-c">
                            <span>1/5</span>
                        </div>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>重庆/协信星光天地店—重庆市渝中区大坪协信星光天地商场L4-017/018</p>
                        <img src="../image/thumb.png" alt="">
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>浙江省</p>
                        <p>杭州/吴山总店—杭州市延安南路10号（吴山广场）</p>
                        <p>杭州/文三店——杭州市文三路463号（东方通信大厦对面）</p>
                        <p>宁波/北仑店——宁波市北仑区新契银泰城（泰山路中河路交叉口）</p>
                        <p>宁波/天一广场店—宁波市天一广场右营巷43号</p>
                        <p>湖州/人民广场店—苕溪西路57号（人民广场公交站）</p>
                        <p>绍兴/诸暨店——暨阳路272号（浣江路中学对面）</p>
                        <p>绍兴/诸暨店——诸暨市东兴路117号（大润发对面）</p>
                        <p>嘉兴/嘉兴店——中港城沃尔玛出口处南</p>
                        <p>义务/义乌店——绣湖西路11号</p>
                        <p>金华/金华店——金华解放东路450号</p>
                        <p>金华/金华二店—金华市兰溪街111号</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>山西省</p>
                        <p>太原/北美新天地店—太原市长风街长治路口北美新天地4楼F443</p>
                        <p>太原/美都汇店——太原市小店区康宁街美都汇二层</p>
                        <p>太原/富百家店——太原市富百家购物中心北门</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>广东省</p>
                        <p>潮州/潮州店——潮州市环城西路新桥花园1号</p>
                        <p>潮州/潮州2店—潮州市枫溪瓷兴路路头（怀德市场斜对面）</p>
                        <p>潮州/奎元店——潮州市奎元实验学校斜对面</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>江苏省</p>
                        <p>常州/常州店——常州市钟楼区莱蒙都会商业街5-106/107号</p>
                        <p>张家港/购物公园店—张家港市购物公园沃尔玛一楼南门口处</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>河南省</p>
                        <p>开封/御街口店——开封市西大街1号（宋都御街口/大商斜对面）</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>湖北省</p>
                        <p>武汉/光谷天地店——武汉市东湖高新区关山大道光谷天地029号</p>
                        <p>赤壁/赤壁店——赤壁市家联超市后门旁右侧</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>福建省</p>
                        <p>厦门/集美万达店——厦门市集美区银江路137号集美万达金街56号</p>
                        <p>泉州/晋江店——晋江市青阳湖光西路东岩苑1幢90-92号</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>甘肃省</p>
                        <p>兰州/兰州店——兰州市安宁区金牛街（西北师范大学斜对面）</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>内蒙古</p>
                        <p>集宁/内蒙古集宁店—内蒙古乌兰察布市集宁区奥威购物广场5楼</p>
                    </div>
                </div>
                <div class="time-line-node">
                    <div class="content">
                        <p>沙特阿拉伯</p>
                        <p>沙特阿拉伯/利雅得——名品街店</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="end-base-footer">
        <div class="end-container">
            <div class="footer-container end-flex end-al-c">
                <div class="logo-footer end-flex end-al-c">
                    <img src="../image/footer_left_logo.png" alt="footer_logo">
                    <div class="left-info">
                        <p>重庆耀炎食品有限公司</p>
                        <p>地址:重庆市渝中区龙湖时代天街C馆17栋</p>
                        <p>耀炎食品&copy;版权所有</p>
                    </div>
                </div>
                <div class="logo-center">
                    <img src="../image/LOGO.png" alt="LOGO">
                </div>
                <div class="right-info end-flex end-al-c">
                    <img src="../image/mail.png" alt="">
                    <span style="margin-left: 9px">邮箱：info@yaoyanfood.com</span>
                </div>
            </div>
        </div>
    </div>
    <div class="dialog-img-box end-flex end-al-c end-jc-c" id="dialog">
        <div class="img-container">
            <div class="content">
                <img src="../image/thumb.png" alt="">
                <img src="../image/school.png" alt="" hidden>
                <img src="../image/qsq.png" alt="" hidden>
                <img src="../image/qqb.png" alt="" hidden>
                <img src="../image/kbqn.png" alt="" hidden>
            </div>
            <div class="left-arrow-container end-flex end-jc-c end-al-c">
                <div class="left-arrow end-cur-p" onclick="arrowLeft()"></div>
            </div>
            <div class="right-arrow-container  end-flex end-jc-c end-al-c">
                <div class="right-arrow end-cur-p" onclick="arrowRight()"></div>
            </div>
            <div class="close-container end-flex end-al-c end-jc-c end-cur-p" onclick="closeDialog()">
                <div class="close">
                    <img src="../image/X.png" alt="">
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../js/end.core.js"></script>
<script type="text/javascript">
    window.onload = () => {
        /*页面加载完毕移除预加载preLoad消除过渡动画类*/
        document.getElementsByClassName('end-preLoad')[0].removeAttribute('class');
        //加载版权
        console.log("%c 复用CSS请注明作者 %c Seale %c 请支持正版 %c 群星闪耀,终不过一曲清欢！", "color:#444;background:#eee;padding:5px 0;", "color:#eee;background:#444;padding:5px 0;", "color:#444;background:#eee;padding:5px 0;", "color:#eee;background:#444;padding:5px 0;");
        // 轮播图插件
        end_carousel.init('#carousel')
        // calc time line margin top
        calcMargin()
    }

    function calcMargin() {
        let nodes = document.getElementById('timeLine').children
        for (let i = 1; i < nodes.length - 1; i++) {
            //获取当前的height 赋给下一个node
            console.log(nodes[i].clientHeight)
            if (nodes[i].clientHeight > 300) {
                nodes[i + 1].style.marginTop = '-' + ((nodes[i].clientHeight / 2)-30) + 'px'
            }else if (nodes[i].clientHeight > 250){
                nodes[i + 1].style.marginTop = '-' + ((nodes[i].clientHeight / 3) -10) + 'px'
            } else if (nodes[i].clientHeight <= 50){
                nodes[i+1].style.marginTop = '15px'
            }
        }
    }
    function closeDialog(){
        console.log("关闭")
        document.getElementById('dialog').classList.remove('show')
    }
    function showDialog(){
        document.getElementById('dialog').classList.add('show')
    }
    //当前图片的索引
    let imgIndex = 0
    function arrowLeft(){
        if (imgIndex === 0) return //当前为第一张
        // 切换上一张图
        let imgs = document.getElementById('dialog').children[0].children[0].children
        imgs[imgIndex].setAttribute('hidden','true')
        imgs[--imgIndex].removeAttribute('hidden')
    }
    function arrowRight(){
        // 切换上一张图
        let imgs = document.getElementById('dialog').children[0].children[0].children
        // 切换下一张图
        if (imgIndex === imgs.length - 1) return //当前为最后一张
        imgs[imgIndex].setAttribute('hidden','true')
        imgs[++imgIndex].removeAttribute('hidden')
    }
</script>
</body>
</html>